//--------------------------------------------------------------------------------
/*!
\file	FileIOHelpers.h
\author	Ben Smith
\date	09/14/2006
\brief	File that includes functions to assist with file I/O
\par	license
All content (c) 2005, DigiPen (USA) Corporation, all rights reserved.
*/
//--------------------------------------------------------------------------------

#ifndef FILEIOHELPERS_H 
#define	FILEIOHELPERS_H

#include	<iostream>
#include	<string>

#define		FILEIO_MAX_LINE_LEN		2056

unsigned	SkipToChar(std::istream& is, char ch);
bool		SkipToCharInFile(std::istream& is, char ch);

unsigned	ReadToChar(std::istream& is, std::string& str, char ch);
unsigned	ReadToChar(std::istream& is, std::string& str, char delimArray[], unsigned numDelim);

unsigned	SkipToChar(const std::string& strIn, unsigned iter, char ch);
unsigned	ReadToChar(const std::string& strIn, unsigned iter, std::string& str, char ch);

bool		IsWhitespace(char c);

bool		CharMatchInArray(char ch, char arr[], unsigned arrSize);

#endif